import request from '@/utils/request.js'

//就这样吧这个如果需要分页再加参数
export const getAllInformation = () =>{
    request.get(`/TopicInformation/GetInfor`)
    }

export const getInformation = (id)=>{
request.get(`app/topic-information/${id}`)
}

export const updateInformation = ({id,informationName,informationPath,informationType})=>{
    request.put(`app/topic-information/${id}`,{informationName,informationPath,informationType})
}

export const deleteInformation = (id)=>{
    request.delete(`app/topic-information/${id}`)
}

export const addInformation = (type,flie)=>{
    request.post(`app/topic-information/save-flie?type=${type}`,{})
}

export const getInformationByType = (type)=>{
    request.get(`app/topic-information/infor-map-by-type?informationType=${type}`)
    }
